home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
PCTV3N5
/
CALCNAME.SRC
next >
Wrap
Text File
|
1992-09-01
|
474b
|
18 lines
FUNCTION CalcHelpName: PathStr;
VAR
EXEName: PathStr;
Dir: DirStr;
Name: NameStr;
Ext: ExtStr;
BEGIN
IF Lo(DosVersion) >= 3 Then
EXEName := ParamStr(0)
ELSE { Replaced 'TVDEMO.EXE' with APPNAME. }
EXEName := FSearch(APPNAME, GetEnv('PATH'));
FSplit(EXEName, Dir, Name, Ext);
IF Dir[Length(Dir)] = '\' THEN
Dec(Dir[0]);
{ Changed from 'DEMOHELP.HLP' to APPNAME. }
CalcHelpName := FSearch(APPNAME + '.HLP', Dir);
END;